package pdai.a2_多线程;

public class TestThread extends  Thread {
    @Override
    public void run() {
        for (int i = 0; i < 20; i++) {
            System.out.println("看视频"+i);
        }
    }

    public static void main(String[] args) {
        TestThread testThread=new TestThread();
        testThread.setDaemon(true);
        testThread.start();
        for (int i = 0; i < 1000; i++) {
            System.out.println("看电视"+i);
        }
    }
}
